package com.lhb.test;

public class Main {

	public static void main(String[] args) throws Exception {
		String a = "123";
		String a1="1"+"23";
		String a2=new String("123");
		String a3=new String("123");
		System.out.println(a==a1);
		System.out.println(a==a3);
		System.out.println(a2==a1);
		System.out.println(a2.intern()==a1);
		
	}

}
